Skip to content

Fix annotation export crash when viewed container is a Subset#240

Open
jhery-rdo wants to merge 2 commits intoAcademySoftwareFoundation:developfrom
jhery-rdo:fix/annotation-export-subset-crash
Open

Fix annotation export crash when viewed container is a Subset#240
jhery-rdo wants to merge 2 commits intoAcademySoftwareFoundation:developfrom
jhery-rdo:fix/annotation-export-subset-crash

Conversation

@jhery-rdo
Copy link
Copy Markdown
Contributor

The annotations exporter accessed the playhead via session.viewed_container.playhead, which assumes the viewed container is always a Playlist. When media is loaded by a Python plugin (e.g. rdo_browser) that sets the viewer to a Subset, this crashes with "'Subset' object has no attribute 'playhead'" because the Subset class does not expose a playhead property.

Replace all 5 call sites with self.current_playhead(), which is provided by PluginBase and returns the active playhead regardless of the viewed container type.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Mar 30, 2026

CLA Missing ID CLA Not Signed

The annotations exporter accessed the playhead via
session.viewed_container.playhead, which assumes the viewed container
is always a Playlist. When media is loaded by a Python plugin (e.g.
rdo_browser) that sets the viewer to a Subset, this crashes with
"'Subset' object has no attribute 'playhead'" because the Subset
class does not expose a playhead property.

Replace all 5 call sites with self.current_playhead(), which is
provided by PluginBase and returns the active playhead regardless
of the viewed container type.
@jhery-rdo jhery-rdo force-pushed the fix/annotation-export-subset-crash branch from bb13501 to 0ae9066 Compare March 30, 2026 22:07
Port changes from xShirae/xstudio_bmd fix/decklink-linux-startup branch.
Adds runtime detection info, v14.2.1 ABI fallback for Linux, improved
error messages, proper resource cleanup, and null-safety checks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant